<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate61 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('yfs_activity', function (Blueprint $table) {
            // $table->string('supplier', 20)->index()->nullable()->comment('供应商名称');
            $table->integer('buy_before_all_pick')->nullable()->comment('全包前需要参与的发数');
            $table->json('tags')->nullable()->comment('标签');
            // $table->integer('display_score_price')->nullable()->comment('显示积分零售价');
            // $table->tinyInteger('status')->comment('1为正常 2为已拉黑')->change();
        });

        Schema::table('orders', function (Blueprint $table) {
            // $table->string('supplier', 20)->index()->nullable()->comment('供应商名称');
            $table->integer('room_id')->nullable()->index()->comment('房间id');
            // $table->json('tags')->nullable()->comment('标签');
            // $table->integer('display_score_price')->nullable()->comment('显示积分零售价');
            // $table->tinyInteger('status')->comment('1为正常 2为已拉黑')->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
